package org.alex.samples.dao;

import java.util.List;

import org.alex.samples.model.ExamUserRoleVO;
import org.alex.samples.model.ExamUserVO;
import org.alex.samples.model.UserJDBC;

public interface IUserJdbcDAO extends IBaseDAO<UserJDBC> {
	
	public UserJDBC getUserById(String userId);
	
	public ExamUserVO getUserById1(String userId);
	
	public List<UserJDBC> findAllUsers();
	
	public Integer createUser(UserJDBC userJDBC) throws Exception;
	
	public Integer editUser(UserJDBC userJDBC) throws Exception;
	
	public Integer deleteUser(String userId) throws Exception;
	
	public void testFindAllUsers4Mapper();

	public List<UserJDBC> findAllUsers4Mapper();

	public ExamUserRoleVO getExamUserRole(String userId);

	public void updateUserLoginFailCount(UserJDBC user);

	public void updateUserLastLockTime(UserJDBC user);

	public List<UserJDBC> getAllStudent();

	public UserJDBC getUserByName(String userName);
	
}
